.class public Lcom/bitauto/autoeasy/selectcar/BrandTypeActivity;
.super Lcom/bitauto/autoeasy/TabBaseActivity;
.source "BrandTypeActivity.java"

# interfaces
.implements Landroid/view/View$OnClickListener;


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/bitauto/autoeasy/selectcar/BrandTypeActivity$BrandTypeTask;
    }
.end annotation


# static fields
.field private static final BUTTONSIZE:I = 0x6

.field public static activity:Lcom/bitauto/autoeasy/selectcar/BrandTypeActivity;

.field static brandType:Lcom/bitauto/autoeasy/selectcar/Object/BrandType;


# instance fields
.field TAG:Ljava/lang/String;

.field private button:[Landroid/widget/Button;

.field contentResolver:Landroid/content/ContentResolver;

.field private fav_button:Landroid/widget/Button;

.field private flag:Z

.field private image01:Lcom/bitauto/autoeasy/widget/RemoteImageView;

.field private mTabHost:Landroid/widget/TabHost;

.field private onClickListener:Landroid/view/View$OnClickListener;

.field private suffix:I

.field private title:Ljava/lang/String;

.field private view01:Landroid/widget/TextView;


# direct methods
.method public constructor <init>()V
    .locals 1

    .prologue
    .line 33
    invoke-direct {p0}, Lcom/bitauto/autoeasy/TabBaseActivity;-><init>()V

    .line 38
    const/4 v0, 0x6

    new-array v0, v0, [Landroid/widget/Button;

    iput-object v0, p0, Lcom/bitauto/autoeasy/selectcar/BrandTypeActivity;->button:[Landroid/widget/Button;

    .line 53
    const-string v0, "BrandTypeActivity"

    iput-object v0, p0, Lcom/bitauto/autoeasy/selectcar/BrandTypeActivity;->TAG:Ljava/lang/String;

    .line 187
    new-instance v0, Lcom/bitauto/autoeasy/selectcar/BrandTypeActivity$1;

    invoke-direct {v0, p0}, Lcom/bitauto/autoeasy/selectcar/BrandTypeActivity$1;-><init>(Lcom/bitauto/autoeasy/selectcar/BrandTypeActivity;)V

    iput-object v0, p0, Lcom/bitauto/autoeasy/selectcar/BrandTypeActivity;->onClickListener:Landroid/view/View$OnClickListener;

    .line 33
    return-void
.end method

.method static synthetic access$0(Lcom/bitauto/autoeasy/selectcar/BrandTypeActivity;)Landroid/widget/TabHost;
    .locals 1
    .parameter

    .prologue
    .line 40
    iget-object v0, p0, Lcom/bitauto/autoeasy/selectcar/BrandTypeActivity;->mTabHost:Landroid/widget/TabHost;

    return-object v0
.end method


# virtual methods
.method public DownLoadData()V
    .locals 3

    .prologue
    .line 86
    new-instance v0, Lcom/bitauto/autoeasy/selectcar/Object/BrandTypeParser;

    new-instance v1, Ljava/lang/StringBuilder;

    const-string v2, "http://m.bitauto.com/iphoneapi/v2/getcartypelist/?carid="

    invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    iget v2, p0, Lcom/bitauto/autoeasy/selectcar/BrandTypeActivity;->suffix:I

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-direct {v0, v1}, Lcom/bitauto/autoeasy/selectcar/Object/BrandTypeParser;-><init>(Ljava/lang/String;)V

    .line 87
    .local v0, bParser:Lcom/bitauto/autoeasy/selectcar/Object/BrandTypeParser;
    invoke-virtual {v0}, Lcom/bitauto/autoeasy/selectcar/Object/BrandTypeParser;->Paser2Object()Lcom/bitauto/autoeasy/selectcar/Object/BrandType;

    move-result-object v1

    sput-object v1, Lcom/bitauto/autoeasy/selectcar/BrandTypeActivity;->brandType:Lcom/bitauto/autoeasy/selectcar/Object/BrandType;

    .line 88
    return-void
.end method

.method public addTab()V
    .locals 15

    .prologue
    .line 105
    invoke-virtual {p0}, Lcom/bitauto/autoeasy/selectcar/BrandTypeActivity;->getTabHost()Landroid/widget/TabHost;

    move-result-object v12

    iput-object v12, p0, Lcom/bitauto/autoeasy/selectcar/BrandTypeActivity;->mTabHost:Landroid/widget/TabHost;

    .line 108
    iget-object v12, p0, Lcom/bitauto/autoeasy/selectcar/BrandTypeActivity;->mTabHost:Landroid/widget/TabHost;

    const-string v13, "selectCar"

    invoke-virtual {v12, v13}, Landroid/widget/TabHost;->newTabSpec(Ljava/lang/String;)Landroid/widget/TabHost$TabSpec;

    move-result-object v6

    .line 109
    .local v6, mTabSpec1:Landroid/widget/TabHost$TabSpec;
    new-instance v0, Landroid/content/Intent;

    const-class v12, Lcom/bitauto/autoeasy/selectcar/CarSummaryActivity;

    invoke-direct {v0, p0, v12}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    .line 110
    .local v0, intent01:Landroid/content/Intent;
    const-string v12, "carid"

    iget v13, p0, Lcom/bitauto/autoeasy/selectcar/BrandTypeActivity;->suffix:I

    invoke-virtual {v0, v12, v13}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;

    move-result-object v12

    const-string v13, "title"

    iget-object v14, p0, Lcom/bitauto/autoeasy/selectcar/BrandTypeActivity;->title:Ljava/lang/String;

    invoke-virtual {v12, v13, v14}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    .line 111
    invoke-virtual {v6, v0}, Landroid/widget/TabHost$TabSpec;->setContent(Landroid/content/Intent;)Landroid/widget/TabHost$TabSpec;

    .line 112
    const-string v12, ""

    invoke-virtual {p0}, Lcom/bitauto/autoeasy/selectcar/BrandTypeActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v13

    const v14, 0x7f02000d

    invoke-virtual {v13, v14}, Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable;

    move-result-object v13

    invoke-virtual {v6, v12, v13}, Landroid/widget/TabHost$TabSpec;->setIndicator(Ljava/lang/CharSequence;Landroid/graphics/drawable/Drawable;)Landroid/widget/TabHost$TabSpec;

    .line 113
    iget-object v12, p0, Lcom/bitauto/autoeasy/selectcar/BrandTypeActivity;->mTabHost:Landroid/widget/TabHost;

    invoke-virtual {v12, v6}, Landroid/widget/TabHost;->addTab(Landroid/widget/TabHost$TabSpec;)V

    .line 116
    iget-object v12, p0, Lcom/bitauto/autoeasy/selectcar/BrandTypeActivity;->mTabHost:Landroid/widget/TabHost;

    const-string v13, "CommentActivity"

    invoke-virtual {v12, v13}, Landroid/widget/TabHost;->newTabSpec(Ljava/lang/String;)Landroid/widget/TabHost$TabSpec;

    move-result-object v7

    .line 117
    .local v7, mTabSpec2:Landroid/widget/TabHost$TabSpec;
    new-instance v1, Landroid/content/Intent;

    const-class v12, Lcom/bitauto/autoeasy/selectcar/CommentActivity;

    invoke-direct {v1, p0, v12}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    .line 118
    .local v1, intent02:Landroid/content/Intent;
    const-string v12, "carid"

    iget v13, p0, Lcom/bitauto/autoeasy/selectcar/BrandTypeActivity;->suffix:I

    invoke-virtual {v1, v12, v13}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;

    move-result-object v12

    const-string v13, "title"

    iget-object v14, p0, Lcom/bitauto/autoeasy/selectcar/BrandTypeActivity;->title:Ljava/lang/String;

    invoke-virtual {v12, v13, v14}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    .line 119
    invoke-virtual {v7, v1}, Landroid/widget/TabHost$TabSpec;->setContent(Landroid/content/Intent;)Landroid/widget/TabHost$TabSpec;

    .line 120
    const-string v12, ""

    invoke-virtual {p0}, Lcom/bitauto/autoeasy/selectcar/BrandTypeActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v13

    const v14, 0x7f02000d

    invoke-virtual {v13, v14}, Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable;

    move-result-object v13

    invoke-virtual {v7, v12, v13}, Landroid/widget/TabHost$TabSpec;->setIndicator(Ljava/lang/CharSequence;Landroid/graphics/drawable/Drawable;)Landroid/widget/TabHost$TabSpec;

    .line 121
    iget-object v12, p0, Lcom/bitauto/autoeasy/selectcar/BrandTypeActivity;->mTabHost:Landroid/widget/TabHost;

    invoke-virtual {v12, v7}, Landroid/widget/TabHost;->addTab(Landroid/widget/TabHost$TabSpec;)V

    .line 124
    iget-object v12, p0, Lcom/bitauto/autoeasy/selectcar/BrandTypeActivity;->mTabHost:Landroid/widget/TabHost;

    const-string v13, "PictureActivity"

    invoke-virtual {v12, v13}, Landroid/widget/TabHost;->newTabSpec(Ljava/lang/String;)Landroid/widget/TabHost$TabSpec;

    move-result-object v8

    .line 125
    .local v8, mTabSpec3:Landroid/widget/TabHost$TabSpec;
    new-instance v2, Landroid/content/Intent;

    const-class v12, Lcom/bitauto/autoeasy/picture/PictureActivity;

    invoke-direct {v2, p0, v12}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    .line 126
    .local v2, intent03:Landroid/content/Intent;
    const-string v12, "carid"

    iget v13, p0, Lcom/bitauto/autoeasy/selectcar/BrandTypeActivity;->suffix:I

    invoke-virtual {v2, v12, v13}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;

    move-result-object v12

    const-string v13, "title"

    iget-object v14, p0, Lcom/bitauto/autoeasy/selectcar/BrandTypeActivity;->title:Ljava/lang/String;

    invoke-virtual {v12, v13, v14}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    .line 127
    invoke-virtual {v8, v2}, Landroid/widget/TabHost$TabSpec;->setContent(Landroid/content/Intent;)Landroid/widget/TabHost$TabSpec;

    .line 128
    const-string v12, ""

    invoke-virtual {p0}, Lcom/bitauto/autoeasy/selectcar/BrandTypeActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v13

    const v14, 0x7f02000d

    invoke-virtual {v13, v14}, Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable;

    move-result-object v13

    invoke-virtual {v8, v12, v13}, Landroid/widget/TabHost$TabSpec;->setIndicator(Ljava/lang/CharSequence;Landroid/graphics/drawable/Drawable;)Landroid/widget/TabHost$TabSpec;

    .line 129
    iget-object v12, p0, Lcom/bitauto/autoeasy/selectcar/BrandTypeActivity;->mTabHost:Landroid/widget/TabHost;

    invoke-virtual {v12, v8}, Landroid/widget/TabHost;->addTab(Landroid/widget/TabHost$TabSpec;)V

    .line 132
    iget-object v12, p0, Lcom/bitauto/autoeasy/selectcar/BrandTypeActivity;->mTabHost:Landroid/widget/TabHost;

    const-string v13, "EvaluatingActivity"

    invoke-virtual {v12, v13}, Landroid/widget/TabHost;->newTabSpec(Ljava/lang/String;)Landroid/widget/TabHost$TabSpec;

    move-result-object v9

    .line 133
    .local v9, mTabSpec4:Landroid/widget/TabHost$TabSpec;
    new-instance v3, Landroid/content/Intent;

    const-class v12, Lcom/bitauto/autoeasy/selectcar/EvaluatingActivity;

    invoke-direct {v3, p0, v12}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    .line 134
    .local v3, intent04:Landroid/content/Intent;
    const-string v12, "carid"

    iget v13, p0, Lcom/bitauto/autoeasy/selectcar/BrandTypeActivity;->suffix:I

    invoke-virtual {v3, v12, v13}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;

    move-result-object v12

    const-string v13, "title"

    iget-object v14, p0, Lcom/bitauto/autoeasy/selectcar/BrandTypeActivity;->title:Ljava/lang/String;

    invoke-virtual {v12, v13, v14}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    .line 135
    invoke-virtual {v9, v3}, Landroid/widget/TabHost$TabSpec;->setContent(Landroid/content/Intent;)Landroid/widget/TabHost$TabSpec;

    .line 136
    const-string v12, ""

    invoke-virtual {p0}, Lcom/bitauto/autoeasy/selectcar/BrandTypeActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v13

    const v14, 0x7f02000d

    invoke-virtual {v13, v14}, Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable;

    move-result-object v13

    invoke-virtual {v9, v12, v13}, Landroid/widget/TabHost$TabSpec;->setIndicator(Ljava/lang/CharSequence;Landroid/graphics/drawable/Drawable;)Landroid/widget/TabHost$TabSpec;

    .line 137
    iget-object v12, p0, Lcom/bitauto/autoeasy/selectcar/BrandTypeActivity;->mTabHost:Landroid/widget/TabHost;

    invoke-virtual {v12, v9}, Landroid/widget/TabHost;->addTab(Landroid/widget/TabHost$TabSpec;)V

    .line 140
    iget-object v12, p0, Lcom/bitauto/autoeasy/selectcar/BrandTypeActivity;->mTabHost:Landroid/widget/TabHost;

    const-string v13, "DealerActivity"

    invoke-virtual {v12, v13}, Landroid/widget/TabHost;->newTabSpec(Ljava/lang/String;)Landroid/widget/TabHost$TabSpec;

    move-result-object v10

    .line 141
    .local v10, mTabSpec5:Landroid/widget/TabHost$TabSpec;
    new-instance v4, Landroid/content/Intent;

    const-class v12, Lcom/bitauto/autoeasy/selectcar/DealerActivity;

    invoke-direct {v4, p0, v12}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    .line 142
    .local v4, intent05:Landroid/content/Intent;
    const-string v12, "carid"

    iget v13, p0, Lcom/bitauto/autoeasy/selectcar/BrandTypeActivity;->suffix:I

    invoke-virtual {v4, v12, v13}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;

    move-result-object v12

    const-string v13, "title"

    iget-object v14, p0, Lcom/bitauto/autoeasy/selectcar/BrandTypeActivity;->title:Ljava/lang/String;

    invoke-virtual {v12, v13, v14}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    .line 143
    invoke-virtual {v10, v4}, Landroid/widget/TabHost$TabSpec;->setContent(Landroid/content/Intent;)Landroid/widget/TabHost$TabSpec;

    .line 144
    const-string v12, ""

    invoke-virtual {p0}, Lcom/bitauto/autoeasy/selectcar/BrandTypeActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v13

    const v14, 0x7f02000d

    invoke-virtual {v13, v14}, Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable;

    move-result-object v13

    invoke-virtual {v10, v12, v13}, Landroid/widget/TabHost$TabSpec;->setIndicator(Ljava/lang/CharSequence;Landroid/graphics/drawable/Drawable;)Landroid/widget/TabHost$TabSpec;

    .line 145
    iget-object v12, p0, Lcom/bitauto/autoeasy/selectcar/BrandTypeActivity;->mTabHost:Landroid/widget/TabHost;

    invoke-virtual {v12, v10}, Landroid/widget/TabHost;->addTab(Landroid/widget/TabHost$TabSpec;)V

    .line 148
    iget-object v12, p0, Lcom/bitauto/autoeasy/selectcar/BrandTypeActivity;->mTabHost:Landroid/widget/TabHost;

    const-string v13, "PromotionActivity"

    invoke-virtual {v12, v13}, Landroid/widget/TabHost;->newTabSpec(Ljava/lang/String;)Landroid/widget/TabHost$TabSpec;

    move-result-object v11

    .line 149
    .local v11, mTabSpec6:Landroid/widget/TabHost$TabSpec;
    new-instance v5, Landroid/content/Intent;

    const-class v12, Lcom/bitauto/autoeasy/selectcar/PromotionActivity;

    invoke-direct {v5, p0, v12}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    .line 150
    .local v5, intent06:Landroid/content/Intent;
    const-string v12, "carid"

    iget v13, p0, Lcom/bitauto/autoeasy/selectcar/BrandTypeActivity;->suffix:I

    invoke-virtual {v5, v12, v13}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;

    move-result-object v12

    const-string v13, "title"

    iget-object v14, p0, Lcom/bitauto/autoeasy/selectcar/BrandTypeActivity;->title:Ljava/lang/String;

    invoke-virtual {v12, v13, v14}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    .line 151
    invoke-virtual {v11, v5}, Landroid/widget/TabHost$TabSpec;->setContent(Landroid/content/Intent;)Landroid/widget/TabHost$TabSpec;

    .line 152
    const-string v12, ""

    invoke-virtual {p0}, Lcom/bitauto/autoeasy/selectcar/BrandTypeActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v13

    const v14, 0x7f02000d

    invoke-virtual {v13, v14}, Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable;

    move-result-object v13

    invoke-virtual {v11, v12, v13}, Landroid/widget/TabHost$TabSpec;->setIndicator(Ljava/lang/CharSequence;Landroid/graphics/drawable/Drawable;)Landroid/widget/TabHost$TabSpec;

    .line 153
    iget-object v12, p0, Lcom/bitauto/autoeasy/selectcar/BrandTypeActivity;->mTabHost:Landroid/widget/TabHost;

    invoke-virtual {v12, v11}, Landroid/widget/TabHost;->addTab(Landroid/widget/TabHost$TabSpec;)V

    .line 155
    iget-object v12, p0, Lcom/bitauto/autoeasy/selectcar/BrandTypeActivity;->mTabHost:Landroid/widget/TabHost;

    const/4 v13, 0x0

    invoke-virtual {v12, v13}, Landroid/widget/TabHost;->setCurrentTab(I)V

    .line 156
    return-void
.end method

.method public changeButtonBg(I)V
    .locals 3
    .parameter "num"

    .prologue
    .line 231
    const/4 v0, 0x0

    .local v0, i:I
    :goto_0
    const/4 v1, 0x6

    if-lt v0, v1, :cond_0

    .line 237
    return-void

    .line 232
    :cond_0
    if-ne v0, p1, :cond_1

    .line 233
    iget-object v1, p0, Lcom/bitauto/autoeasy/selectcar/BrandTypeActivity;->button:[Landroid/widget/Button;

    aget-object v1, v1, v0

    const v2, 0x7f020029

    invoke-virtual {v1, v2}, Landroid/widget/Button;->setBackgroundResource(I)V

    .line 231
    :goto_1
    add-int/lit8 v0, v0, 0x1

    goto :goto_0

    .line 235
    :cond_1
    iget-object v1, p0, Lcom/bitauto/autoeasy/selectcar/BrandTypeActivity;->button:[Landroid/widget/Button;

    aget-object v1, v1, v0

    const v2, 0x7f02003b

    invoke-virtual {v1, v2}, Landroid/widget/Button;->setBackgroundResource(I)V

    goto :goto_1
.end method

.method public deleteCar()V
    .locals 4

    .prologue
    .line 280
    iget-object v0, p0, Lcom/bitauto/autoeasy/selectcar/BrandTypeActivity;->contentResolver:Landroid/content/ContentResolver;

    sget-object v1, Lcom/bitauto/autoeasy/db/provider/FAV_CARContentProvider;->CONTENT_URI:Landroid/net/Uri;

    .line 281
    new-instance v2, Ljava/lang/StringBuilder;

    const-string v3, "carid = "

    invoke-direct {v2, v3}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    sget-object v3, Lcom/bitauto/autoeasy/selectcar/BrandTypeActivity;->brandType:Lcom/bitauto/autoeasy/selectcar/Object/BrandType;

    invoke-virtual {v3}, Lcom/bitauto/autoeasy/selectcar/Object/BrandType;->getID()I

    move-result v3

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    const/4 v3, 0x0

    .line 280
    invoke-virtual {v0, v1, v2, v3}, Landroid/content/ContentResolver;->delete(Landroid/net/Uri;Ljava/lang/String;[Ljava/lang/String;)I

    .line 282
    new-instance v0, Ljava/lang/StringBuilder;

    sget-object v1, Lcom/bitauto/autoeasy/selectcar/BrandTypeActivity;->brandType:Lcom/bitauto/autoeasy/selectcar/Object/BrandType;

    invoke-virtual {v1}, Lcom/bitauto/autoeasy/selectcar/Object/BrandType;->getShowName()Ljava/lang/String;

    move-result-object v1

    invoke-static {v1}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v1

    invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v1, "-\u5df2\u4ece\u6536\u85cf\u5939\u79fb\u9664"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {p0, v0}, Lcom/bitauto/autoeasy/tool/ToolBox;->showToast(Landroid/content/Context;Ljava/lang/String;)V

    .line 283
    iget-object v0, p0, Lcom/bitauto/autoeasy/selectcar/BrandTypeActivity;->fav_button:Landroid/widget/Button;

    const-string v1, "\u6536\u85cf"

    invoke-virtual {v0, v1}, Landroid/widget/Button;->setText(Ljava/lang/CharSequence;)V

    .line 284
    const/4 v0, 0x0

    iput-boolean v0, p0, Lcom/bitauto/autoeasy/selectcar/BrandTypeActivity;->flag:Z

    .line 285
    return-void
.end method

.method public initView()V
    .locals 8

    .prologue
    const/4 v7, 0x4

    const/4 v6, 0x3

    const/4 v5, 0x2

    const/4 v4, 0x1

    const/4 v3, 0x0

    .line 162
    iget-object v2, p0, Lcom/bitauto/autoeasy/selectcar/BrandTypeActivity;->button:[Landroid/widget/Button;

    const v1, 0x7f0b0063

    invoke-virtual {p0, v1}, Lcom/bitauto/autoeasy/selectcar/BrandTypeActivity;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/Button;

    aput-object v1, v2, v3

    .line 163
    iget-object v1, p0, Lcom/bitauto/autoeasy/selectcar/BrandTypeActivity;->button:[Landroid/widget/Button;

    aget-object v1, v1, v3

    iget-object v2, p0, Lcom/bitauto/autoeasy/selectcar/BrandTypeActivity;->onClickListener:Landroid/view/View$OnClickListener;

    invoke-virtual {v1, v2}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 164
    iget-object v2, p0, Lcom/bitauto/autoeasy/selectcar/BrandTypeActivity;->button:[Landroid/widget/Button;

    const v1, 0x7f0b0064

    invoke-virtual {p0, v1}, Lcom/bitauto/autoeasy/selectcar/BrandTypeActivity;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/Button;

    aput-object v1, v2, v4

    .line 165
    iget-object v1, p0, Lcom/bitauto/autoeasy/selectcar/BrandTypeActivity;->button:[Landroid/widget/Button;

    aget-object v1, v1, v4

    iget-object v2, p0, Lcom/bitauto/autoeasy/selectcar/BrandTypeActivity;->onClickListener:Landroid/view/View$OnClickListener;

    invoke-virtual {v1, v2}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 166
    iget-object v2, p0, Lcom/bitauto/autoeasy/selectcar/BrandTypeActivity;->button:[Landroid/widget/Button;

    const v1, 0x7f0b0065

    invoke-virtual {p0, v1}, Lcom/bitauto/autoeasy/selectcar/BrandTypeActivity;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/Button;

    aput-object v1, v2, v5

    .line 167
    iget-object v1, p0, Lcom/bitauto/autoeasy/selectcar/BrandTypeActivity;->button:[Landroid/widget/Button;

    aget-object v1, v1, v5

    iget-object v2, p0, Lcom/bitauto/autoeasy/selectcar/BrandTypeActivity;->onClickListener:Landroid/view/View$OnClickListener;

    invoke-virtual {v1, v2}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 168
    iget-object v2, p0, Lcom/bitauto/autoeasy/selectcar/BrandTypeActivity;->button:[Landroid/widget/Button;

    const v1, 0x7f0b0066

    invoke-virtual {p0, v1}, Lcom/bitauto/autoeasy/selectcar/BrandTypeActivity;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/Button;

    aput-object v1, v2, v6

    .line 169
    iget-object v1, p0, Lcom/bitauto/autoeasy/selectcar/BrandTypeActivity;->button:[Landroid/widget/Button;

    aget-object v1, v1, v6

    iget-object v2, p0, Lcom/bitauto/autoeasy/selectcar/BrandTypeActivity;->onClickListener:Landroid/view/View$OnClickListener;

    invoke-virtual {v1, v2}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 170
    iget-object v2, p0, Lcom/bitauto/autoeasy/selectcar/BrandTypeActivity;->button:[Landroid/widget/Button;

    const v1, 0x7f0b0067

    invoke-virtual {p0, v1}, Lcom/bitauto/autoeasy/selectcar/BrandTypeActivity;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/Button;

    aput-object v1, v2, v7

    .line 171
    iget-object v1, p0, Lcom/bitauto/autoeasy/selectcar/BrandTypeActivity;->button:[Landroid/widget/Button;

    aget-object v1, v1, v7

    iget-object v2, p0, Lcom/bitauto/autoeasy/selectcar/BrandTypeActivity;->onClickListener:Landroid/view/View$OnClickListener;

    invoke-virtual {v1, v2}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 172
    iget-object v2, p0, Lcom/bitauto/autoeasy/selectcar/BrandTypeActivity;->button:[Landroid/widget/Button;

    const/4 v3, 0x5

    const v1, 0x7f0b0068

    invoke-virtual {p0, v1}, Lcom/bitauto/autoeasy/selectcar/BrandTypeActivity;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/Button;

    aput-object v1, v2, v3

    .line 173
    iget-object v1, p0, Lcom/bitauto/autoeasy/selectcar/BrandTypeActivity;->button:[Landroid/widget/Button;

    const/4 v2, 0x5

    aget-object v1, v1, v2

    iget-object v2, p0, Lcom/bitauto/autoeasy/selectcar/BrandTypeActivity;->onClickListener:Landroid/view/View$OnClickListener;

    invoke-virtual {v1, v2}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 175
    const v1, 0x7f0b0059

    invoke-virtual {p0, v1}, Lcom/bitauto/autoeasy/selectcar/BrandTypeActivity;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/TextView;

    iput-object v1, p0, Lcom/bitauto/autoeasy/selectcar/BrandTypeActivity;->view01:Landroid/widget/TextView;

    .line 176
    const v1, 0x7f0b0057

    invoke-virtual {p0, v1}, Lcom/bitauto/autoeasy/selectcar/BrandTypeActivity;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Lcom/bitauto/autoeasy/widget/RemoteImageView;

    iput-object v1, p0, Lcom/bitauto/autoeasy/selectcar/BrandTypeActivity;->image01:Lcom/bitauto/autoeasy/widget/RemoteImageView;

    .line 177
    const v1, 0x7f0b0062

    invoke-virtual {p0, v1}, Lcom/bitauto/autoeasy/selectcar/BrandTypeActivity;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/Button;

    iput-object v1, p0, Lcom/bitauto/autoeasy/selectcar/BrandTypeActivity;->fav_button:Landroid/widget/Button;

    .line 178
    iget-object v1, p0, Lcom/bitauto/autoeasy/selectcar/BrandTypeActivity;->fav_button:Landroid/widget/Button;

    invoke-virtual {v1, p0}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 179
    invoke-virtual {p0}, Lcom/bitauto/autoeasy/selectcar/BrandTypeActivity;->getContentResolver()Landroid/content/ContentResolver;

    move-result-object v1

    iput-object v1, p0, Lcom/bitauto/autoeasy/selectcar/BrandTypeActivity;->contentResolver:Landroid/content/ContentResolver;

    .line 181
    const v1, 0x7f0b01aa

    invoke-virtual {p0, v1}, Lcom/bitauto/autoeasy/selectcar/BrandTypeActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    .line 182
    .local v0, imageView:Landroid/widget/ImageView;
    const v1, 0x7f020002

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setBackgroundResource(I)V

    .line 184
    return-void
.end method

.method public isExit()Z
    .locals 7

    .prologue
    const/4 v2, 0x0

    .line 244
    iget-object v0, p0, Lcom/bitauto/autoeasy/selectcar/BrandTypeActivity;->contentResolver:Landroid/content/ContentResolver;

    sget-object v1, Lcom/bitauto/autoeasy/db/provider/FAV_CARContentProvider;->CONTENT_URI:Landroid/net/Uri;

    new-instance v3, Ljava/lang/StringBuilder;

    const-string v4, "carid = "

    invoke-direct {v3, v4}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    sget-object v4, Lcom/bitauto/autoeasy/selectcar/BrandTypeActivity;->brandType:Lcom/bitauto/autoeasy/selectcar/Object/BrandType;

    invoke-virtual {v4}, Lcom/bitauto/autoeasy/selectcar/Object/BrandType;->getID()I

    move-result v4

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    move-object v4, v2

    move-object v5, v2

    invoke-virtual/range {v0 .. v5}, Landroid/content/ContentResolver;->query(Landroid/net/Uri;[Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;)Landroid/database/Cursor;

    move-result-object v6

    .line 245
    .local v6, cursor:Landroid/database/Cursor;
    if-eqz v6, :cond_0

    invoke-interface {v6}, Landroid/database/Cursor;->getCount()I

    move-result v0

    if-lez v0, :cond_0

    .line 246
    const/4 v0, 0x1

    .line 248
    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method

.method public onClick(Landroid/view/View;)V
    .locals 1
    .parameter "v"

    .prologue
    .line 290
    invoke-virtual {p1}, Landroid/view/View;->getId()I

    move-result v0

    packed-switch v0, :pswitch_data_0

    .line 304
    :goto_0
    return-void

    .line 293
    :pswitch_0
    iget-boolean v0, p0, Lcom/bitauto/autoeasy/selectcar/BrandTypeActivity;->flag:Z

    if-eqz v0, :cond_0

    .line 294
    invoke-virtual {p0}, Lcom/bitauto/autoeasy/selectcar/BrandTypeActivity;->deleteCar()V

    goto :goto_0

    .line 296
    :cond_0
    sget-object v0, Lcom/bitauto/autoeasy/selectcar/BrandTypeActivity;->brandType:Lcom/bitauto/autoeasy/selectcar/Object/BrandType;

    if-eqz v0, :cond_1

    .line 297
    invoke-virtual {p0}, Lcom/bitauto/autoeasy/selectcar/BrandTypeActivity;->saveCar()V

    goto :goto_0

    .line 299
    :cond_1
    const-string v0, "\u8bb0\u5f55\u4e0d\u5b58\u5728\uff0c\u65e0\u6cd5\u4fdd\u5b58"

    invoke-static {p0, v0}, Lcom/bitauto/autoeasy/tool/ToolBox;->showToast(Landroid/content/Context;Ljava/lang/String;)V

    goto :goto_0

    .line 290
    :pswitch_data_0
    .packed-switch 0x7f0b0062
        :pswitch_0
    .end packed-switch
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 8
    .parameter "savedInstanceState"

    .prologue
    const/4 v7, 0x1

    const/4 v2, 0x0

    const/4 v4, 0x0

    .line 57
    invoke-super {p0, p1}, Lcom/bitauto/autoeasy/TabBaseActivity;->onCreate(Landroid/os/Bundle;)V

    .line 59
    const v0, 0x7f03001d

    invoke-virtual {p0, v0}, Lcom/bitauto/autoeasy/selectcar/BrandTypeActivity;->setLayout(I)V

    .line 61
    sput-object p0, Lcom/bitauto/autoeasy/selectcar/BrandTypeActivity;->activity:Lcom/bitauto/autoeasy/selectcar/BrandTypeActivity;

    .line 62
    invoke-virtual {p0}, Lcom/bitauto/autoeasy/selectcar/BrandTypeActivity;->getIntent()Landroid/content/Intent;

    move-result-object v0

    const-string v1, "carid"

    invoke-virtual {v0, v1, v4}, Landroid/content/Intent;->getIntExtra(Ljava/lang/String;I)I

    move-result v0

    iput v0, p0, Lcom/bitauto/autoeasy/selectcar/BrandTypeActivity;->suffix:I

    .line 63
    invoke-virtual {p0}, Lcom/bitauto/autoeasy/selectcar/BrandTypeActivity;->getIntent()Landroid/content/Intent;

    move-result-object v0

    const-string v1, "title"

    invoke-virtual {v0, v1}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/bitauto/autoeasy/selectcar/BrandTypeActivity;->title:Ljava/lang/String;

    .line 64
    iget-object v0, p0, Lcom/bitauto/autoeasy/selectcar/BrandTypeActivity;->title:Ljava/lang/String;

    invoke-virtual {p0, v0}, Lcom/bitauto/autoeasy/selectcar/BrandTypeActivity;->setTitleContent(Ljava/lang/String;)V

    .line 65
    invoke-virtual {p0}, Lcom/bitauto/autoeasy/selectcar/BrandTypeActivity;->initView()V

    .line 66
    invoke-virtual {p0, v4}, Lcom/bitauto/autoeasy/selectcar/BrandTypeActivity;->changeButtonBg(I)V

    .line 71
    new-instance v0, Lcom/bitauto/autoeasy/selectcar/BrandTypeActivity$BrandTypeTask;

    invoke-direct {v0, p0}, Lcom/bitauto/autoeasy/selectcar/BrandTypeActivity$BrandTypeTask;-><init>(Lcom/bitauto/autoeasy/selectcar/BrandTypeActivity;)V

    new-array v1, v7, [Ljava/lang/String;

    const-string v3, ""

    aput-object v3, v1, v4

    invoke-virtual {v0, v1}, Lcom/bitauto/autoeasy/selectcar/BrandTypeActivity$BrandTypeTask;->execute([Ljava/lang/Object;)Landroid/os/AsyncTask;

    .line 73
    invoke-virtual {p0}, Lcom/bitauto/autoeasy/selectcar/BrandTypeActivity;->addTab()V

    .line 75
    iget-object v0, p0, Lcom/bitauto/autoeasy/selectcar/BrandTypeActivity;->contentResolver:Landroid/content/ContentResolver;

    sget-object v1, Lcom/bitauto/autoeasy/db/provider/FAV_CARContentProvider;->CONTENT_URI:Landroid/net/Uri;

    .line 76
    new-instance v3, Ljava/lang/StringBuilder;

    const-string v4, "carid = "

    invoke-direct {v3, v4}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    iget v4, p0, Lcom/bitauto/autoeasy/selectcar/BrandTypeActivity;->suffix:I

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    move-object v4, v2

    move-object v5, v2

    .line 75
    invoke-virtual/range {v0 .. v5}, Landroid/content/ContentResolver;->query(Landroid/net/Uri;[Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;)Landroid/database/Cursor;

    move-result-object v6

    .line 77
    .local v6, cursor:Landroid/database/Cursor;
    if-eqz v6, :cond_0

    invoke-interface {v6}, Landroid/database/Cursor;->getCount()I

    move-result v0

    if-lez v0, :cond_0

    .line 78
    iget-object v0, p0, Lcom/bitauto/autoeasy/selectcar/BrandTypeActivity;->fav_button:Landroid/widget/Button;

    const-string v1, "\u53d6\u6d88\u6536\u85cf"

    invoke-virtual {v0, v1}, Landroid/widget/Button;->setText(Ljava/lang/CharSequence;)V

    .line 79
    iput-boolean v7, p0, Lcom/bitauto/autoeasy/selectcar/BrandTypeActivity;->flag:Z

    .line 83
    :cond_0
    return-void
.end method

.method public refreshView()V
    .locals 3

    .prologue
    .line 91
    sget-object v0, Lcom/bitauto/autoeasy/selectcar/BrandTypeActivity;->brandType:Lcom/bitauto/autoeasy/selectcar/Object/BrandType;

    if-eqz v0, :cond_0

    .line 92
    iget-object v0, p0, Lcom/bitauto/autoeasy/selectcar/BrandTypeActivity;->view01:Landroid/widget/TextView;

    new-instance v1, Ljava/lang/StringBuilder;

    sget-object v2, Lcom/bitauto/autoeasy/selectcar/BrandTypeActivity;->brandType:Lcom/bitauto/autoeasy/selectcar/Object/BrandType;

    invoke-virtual {v2}, Lcom/bitauto/autoeasy/selectcar/Object/BrandType;->getCsReferPrice()Ljava/lang/String;

    move-result-object v2

    invoke-static {v2}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v2

    invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v2, "\u4e07"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 94
    sget-object v0, Lcom/bitauto/autoeasy/selectcar/BrandTypeActivity;->brandType:Lcom/bitauto/autoeasy/selectcar/Object/BrandType;

    invoke-virtual {v0}, Lcom/bitauto/autoeasy/selectcar/Object/BrandType;->getCsPic()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/String;->length()I

    move-result v0

    if-lez v0, :cond_0

    .line 95
    iget-object v0, p0, Lcom/bitauto/autoeasy/selectcar/BrandTypeActivity;->image01:Lcom/bitauto/autoeasy/widget/RemoteImageView;

    const v1, 0x7f020008

    invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/bitauto/autoeasy/widget/RemoteImageView;->setDefaultImage(Ljava/lang/Integer;)V

    .line 96
    iget-object v0, p0, Lcom/bitauto/autoeasy/selectcar/BrandTypeActivity;->image01:Lcom/bitauto/autoeasy/widget/RemoteImageView;

    sget-object v1, Lcom/bitauto/autoeasy/selectcar/BrandTypeActivity;->brandType:Lcom/bitauto/autoeasy/selectcar/Object/BrandType;

    invoke-virtual {v1}, Lcom/bitauto/autoeasy/selectcar/Object/BrandType;->getCsPic()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/bitauto/autoeasy/widget/RemoteImageView;->setImageUrl(Ljava/lang/String;)V

    .line 102
    :cond_0
    return-void
.end method

.method public saveCar()V
    .locals 5

    .prologue
    .line 257
    new-instance v0, Landroid/content/ContentValues;

    invoke-direct {v0}, Landroid/content/ContentValues;-><init>()V

    .line 258
    .local v0, cv:Landroid/content/ContentValues;
    const-string v2, "carid"

    sget-object v3, Lcom/bitauto/autoeasy/selectcar/BrandTypeActivity;->brandType:Lcom/bitauto/autoeasy/selectcar/Object/BrandType;

    invoke-virtual {v3}, Lcom/bitauto/autoeasy/selectcar/Object/BrandType;->getID()I

    move-result v3

    invoke-static {v3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v3

    invoke-virtual {v0, v2, v3}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/Integer;)V

    .line 259
    const-string v2, "carname"

    sget-object v3, Lcom/bitauto/autoeasy/selectcar/BrandTypeActivity;->brandType:Lcom/bitauto/autoeasy/selectcar/Object/BrandType;

    invoke-virtual {v3}, Lcom/bitauto/autoeasy/selectcar/Object/BrandType;->getShowName()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v0, v2, v3}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/String;)V

    .line 260
    const-string v2, "rang"

    new-instance v3, Ljava/lang/StringBuilder;

    sget-object v4, Lcom/bitauto/autoeasy/selectcar/BrandTypeActivity;->brandType:Lcom/bitauto/autoeasy/selectcar/Object/BrandType;

    invoke-virtual {v4}, Lcom/bitauto/autoeasy/selectcar/Object/BrandType;->getCsReferPrice()Ljava/lang/String;

    move-result-object v4

    invoke-static {v4}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v4

    invoke-direct {v3, v4}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v4, "\u4e07"

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v0, v2, v3}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/String;)V

    .line 261
    iget-object v2, p0, Lcom/bitauto/autoeasy/selectcar/BrandTypeActivity;->image01:Lcom/bitauto/autoeasy/widget/RemoteImageView;

    invoke-virtual {v2}, Lcom/bitauto/autoeasy/widget/RemoteImageView;->getDrawable()Landroid/graphics/drawable/Drawable;

    move-result-object v2

    if-eqz v2, :cond_0

    .line 263
    :try_start_0
    sget-object v2, Lcom/bitauto/autoeasy/selectcar/BrandTypeActivity;->brandType:Lcom/bitauto/autoeasy/selectcar/Object/BrandType;

    invoke-virtual {v2}, Lcom/bitauto/autoeasy/selectcar/Object/BrandType;->getAllSpell()Ljava/lang/String;

    move-result-object v2

    iget-object v3, p0, Lcom/bitauto/autoeasy/selectcar/BrandTypeActivity;->image01:Lcom/bitauto/autoeasy/widget/RemoteImageView;

    invoke-virtual {v3}, Lcom/bitauto/autoeasy/widget/RemoteImageView;->getDrawable()Landroid/graphics/drawable/Drawable;

    move-result-object v3

    invoke-static {v3}, Lcom/bitauto/autoeasy/tool/ToolBox;->drawableToBitmap(Landroid/graphics/drawable/Drawable;)Landroid/graphics/Bitmap;

    move-result-object v3

    invoke-static {p0, v2, v3}, Lcom/bitauto/autoeasy/tool/ToolBox;->saveBitmap(Landroid/content/Context;Ljava/lang/String;Landroid/graphics/Bitmap;)V

    .line 264
    const-string v2, "imagepath"

    new-instance v3, Ljava/lang/StringBuilder;

    const-string v4, "/sdcard/autoeasy/"

    invoke-direct {v3, v4}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    sget-object v4, Lcom/bitauto/autoeasy/selectcar/BrandTypeActivity;->brandType:Lcom/bitauto/autoeasy/selectcar/Object/BrandType;

    invoke-virtual {v4}, Lcom/bitauto/autoeasy/selectcar/Object/BrandType;->getAllSpell()Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    const-string v4, ".png"

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v0, v2, v3}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/String;)V
    :try_end_0
    .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0

    .line 269
    :cond_0
    :goto_0
    iget-object v2, p0, Lcom/bitauto/autoeasy/selectcar/BrandTypeActivity;->contentResolver:Landroid/content/ContentResolver;

    sget-object v3, Lcom/bitauto/autoeasy/db/provider/FAV_CARContentProvider;->CONTENT_URI:Landroid/net/Uri;

    invoke-virtual {v2, v3, v0}, Landroid/content/ContentResolver;->insert(Landroid/net/Uri;Landroid/content/ContentValues;)Landroid/net/Uri;

    .line 270
    const-string v2, "\u6536\u85cf\u6210\u529f"

    invoke-static {p0, v2}, Lcom/bitauto/autoeasy/tool/ToolBox;->showToast(Landroid/content/Context;Ljava/lang/String;)V

    .line 271
    iget-object v2, p0, Lcom/bitauto/autoeasy/selectcar/BrandTypeActivity;->fav_button:Landroid/widget/Button;

    const-string v3, "\u53d6\u6d88\u6536\u85cf"

    invoke-virtual {v2, v3}, Landroid/widget/Button;->setText(Ljava/lang/CharSequence;)V

    .line 272
    const/4 v2, 0x1

    iput-boolean v2, p0, Lcom/bitauto/autoeasy/selectcar/BrandTypeActivity;->flag:Z

    .line 273
    return-void

    .line 265
    :catch_0
    move-exception v2

    move-object v1, v2

    .line 266
    .local v1, e:Ljava/io/IOException;
    invoke-virtual {v1}, Ljava/io/IOException;->printStackTrace()V

    goto :goto_0
.end method
